home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CModalBars.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  3.2 KB  |  110 lines  |  [TEXT/CWIE]

  1. // CModalBars.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. #include "DModalBarsData.h"
  8.  
  9. class LStream;
  10.  
  11. class LPushButton;
  12. class CTabPanelGroup;
  13. class LScrollBar;
  14. class CScrollBar;
  15. class LSlider;
  16. class LLittleArrows;
  17. class LProgressBar;
  18. class LChasingArrows;
  19. class CControlPane;
  20.  
  21.  
  22. //----------
  23. class CModalBars : public LGADialog {
  24. public:    // these comprise the programming interface for using the dialog
  25.     static    CModalBars*        CreateModalBars        (LCommander*    inSuperCommander,
  26.                                                  CommandT        inCommand,
  27.                                                  DModalBarsData*        inData);
  28.     virtual void        SetFromData        (DModalBarsData*        inData);
  29.     virtual DModalBarsData*        GetData ();
  30.  
  31. // these functions will be obsoleted
  32. // retained only for backwards compatibility
  33.     virtual Boolean        GetBarsChoice();
  34.     virtual void        SetBarsChoice        (Int32        inChoice);
  35.     virtual Boolean        GetStandardValue();
  36.     virtual void        SetStandardValue        (Int32        inValue);
  37.     virtual Boolean        GetGraphicValue();
  38.     virtual void        SetGraphicValue        (Int32        inValue);
  39.     virtual Boolean        GetSliderValue();
  40.     virtual void        SetSliderValue        (Int32        inValue);
  41.     virtual Boolean        GetTickMarksValue();
  42.     virtual void        SetTickMarksValue        (Int32        inValue);
  43.     virtual Boolean        GetNonDirectionalValue();
  44.     virtual void        SetNonDirectionalValue        (Int32        inValue);
  45.     virtual Boolean        GetLittleArrowsValue();
  46.     virtual void        SetLittleArrowsValue        (Int32        inValue);
  47.     virtual Boolean        GetSpinnerValue();
  48.     virtual void        SetSpinnerValue        (Int32        inValue);
  49.     virtual Boolean        GetVolumeControlValue();
  50.     virtual void        SetVolumeControlValue        (Int32        inValue);
  51.     virtual Boolean        GetJimSSliderValue();
  52.     virtual void        SetJimSSliderValue        (Int32        inValue);
  53.     virtual void        SetStandard2Choice        (Int32        inChoice);
  54.     virtual void        SetIndeterminateChoice        (Int32        inChoice);
  55.     virtual void        SetChasingArrowsChoice        (Int32        inChoice);
  56.     virtual void        SetRectangleChoice        (Int32        inChoice);
  57.     virtual void        SetRoundRectChoice        (Int32        inChoice);
  58.     virtual void        SetBarberPoleChoice        (Int32        inChoice);
  59.     virtual void        SetRoundBarberChoice        (Int32        inChoice);
  60.  
  61.  
  62. public:    // these comprise the implementation
  63.     enum { class_ID = 'Mod4' };
  64.  
  65.                         CModalBars        (LStream*    inStream);
  66.     virtual                ~CModalBars();
  67.  
  68.     virtual void        ListenToMessage        (MessageT    inMessage,
  69.                                              void        *ioParam);
  70.  
  71.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  72.                                              void        *ioParam = nil);
  73.     virtual void        FindCommandStatus    (CommandT    inCommand,
  74.                                              Boolean    &outEnabled,
  75.                                              Boolean    &outUsesMark,
  76.                                              Char16        &outMark,
  77.                                              Str255        outName);
  78.  
  79. protected:
  80.     static    void        RegisterClass();
  81.     virtual void        FinishCreateSelf();
  82.     virtual void        DataChanged        (long        inDataID);
  83.  
  84. protected:
  85.     static Boolean        sIsRegistered;
  86.     CommandT            mCommand;
  87.  
  88.     LPushButton*        mOKButton;
  89.     CTabPanelGroup*        mBarsPanel;
  90.     LScrollBar*        mStandardScroll;
  91.     CScrollBar*        mGraphicScroll;
  92.     LSlider*        mSliderScroll;
  93.     LSlider*        mTickMarksScroll;
  94.     LSlider*        mNonDirectionalScroll;
  95.     LLittleArrows*        mLittleArrowsScroll;
  96.     CScrollBar*        mSpinnerScroll;
  97.     CScrollBar*        mVolumeControlScroll;
  98.     CScrollBar*        mJimSSliderScroll;
  99.     LProgressBar*        mStandard2Bar;
  100.     LProgressBar*        mIndeterminateBar;
  101.     LChasingArrows*        mChasingArrowsBar;
  102.     CControlPane*        mRectangleBar;
  103.     CControlPane*        mRoundRectBar;
  104.     CControlPane*        mBarberPoleBar;
  105.     CControlPane*        mRoundBarberBar;
  106.  
  107.     DModalBarsData*        mData;
  108.  
  109. };
  110.